package com.fzkj.timer;

import java.util.Timer;

public class test {

    public static void main(String[] args) {

        weihuTimer.timer1 = new Timer();
        weihuTimer.timer1.schedule(new MyTimerTask(weihuTimer.timer1), 60*1000);

        try{
            Thread.sleep(5000);
        }catch(Exception e) {
            e.printStackTrace();
        }
        weihuTimer.timer1.cancel();
        System.out.println("第一次停止timer");
        System.out.println(weihuTimer.timer1 == null);
        weihuTimer.timer1.cancel();
        System.out.println("第二次停止timer");
        System.out.println("主线程执行完成");

        weihuTimer.timer1 = new Timer();
        weihuTimer.timer1.schedule(new MyTimerTask(weihuTimer.timer1), 60*1000);

//        System.out.println((int)Float.parseFloat("388"));
    }
}
